package com.rcd2.service;

import com.rcd2.pojo.Brand;
import com.rcd2.pojo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:BrandService
 * Package:com.rcd2.service
 * ProjectName:servlet
 * Description:
 *
 * @Date:2022/2/9 16:32
 * @Author:Mrhan
 */
public interface BrandService {
    /**查询全部数据*/
    List<Brand> selectAll();

    /**添加品牌数据*/
    void add(Brand brand);

    /**批量删除*/
    void deleteByIds(int[] ids);

    /**分页查询
     * currentPage: 当前页码
     * pageSize: 每页展示的条数*/
    PageBean<Brand> selectByPage(int currentPage, int pageSize);

    /**分页条件查询*/
    PageBean<Brand> selectByPageAndCondition(int currentPage, int pageSize, Brand brand);

}
